FROM registry:2
COPY registry /var/lib/registry
COPY config.yml /etc/docker/registry/config.yml
RUN chmod 777 /etc/docker/registry/config.yml